#include "hometeacher.h"
#include "ui_hometeacher.h"

HomeTeacher::HomeTeacher(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::HomeTeacher)
{
    ui->setupUi(this);
}

QString HomeTeacher::inital(QString id,QString name)
{
    HomeTeacher::id = id.toUtf8();
    HomeTeacher::name = name.toUtf8();
    //更新root主页显示
    ui->lable_userinfo->setText("欢迎:"+HomeTeacher::name+" \nID:  "+HomeTeacher::id);
}

HomeTeacher::~HomeTeacher()
{
    delete ui;
}
